#ifndef _LIST_H__
#define _LIST_H__

#include <stdio.h>
#include <stdlib.h>
#include <windows.h>


typedef struct NODE_s
{
    void * data;
    struct NODE_s * next;

} NODE_t;

typedef struct LIST_s
{
    NODE_t * first_node;
    unsigned int nr_elements;
    
} LIST_t;

BOOL ListCreate( LIST_t * );
void ListDestroy( LIST_t * );
BOOL ListAdd( LIST_t *, void * );
void * ListGet( LIST_t *, int );
unsigned int ListGetNrElements( LIST_t * );


#endif /* _LIST_H__ */
